package com.t235.gc.biz.controller;

import com.t235.gc.entity.Bankcar;
import com.t235.gc.biz.service.BankcarService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 银行卡表(Bankcar)表控制层
 *
 * @author makejava
 * @since 2021-03-24 08:45:16
 */
@RestController
@RequestMapping("bankcar")
public class BankcarController {
    /**
     * 服务对象
     */
    @Resource
    private BankcarService bankcarService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Bankcar selectOne(Long id) {
        return this.bankcarService.queryById(id);
    }

}
